package com.example.demo.mapper;

import com.example.demo.domain.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    //获取用户
    User getUserByInfo(@Param("username") String username, @Param("password") String password);
    //注册用户
    int registerUser(@Param("nickname") String nickname,@Param("username") String username, @Param("password") String password);

    //修改用户
    int updateUser(@Param("username") String username, @Param("password") String password);
}
